package com.shop.flowershopmanager.entity;

import java.util.Date;

public class SalesRecord {
    private Integer sId;
    private Date sDate;
    private Integer fId;
    private Integer count;
    private double total;
    private String client;
    private String remark;
    private String emp;
    private Date createAt;
    private Date updatedAt;
    private Flowers flowers;


    public Integer getsId() {
        return sId;
    }

    public void setsId(Integer sId) {
        this.sId = sId;
    }

    public Date getsDate() {
        return sDate;
    }

    public void setsDate(Date sDate) {
        this.sDate = sDate;
    }

    public Integer getfId() {
        return fId;
    }

    public void setfId(Integer fId) {
        this.fId = fId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

    public String getClient() {
        return client;
    }

    public void setClient(String client) {
        this.client = client;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getEmp() {
        return emp;
    }

    public void setEmp(String emp) {
        this.emp = emp;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Flowers getFlowers() {
        return flowers;
    }

    public void setFlowers(Flowers flowers) {
        this.flowers = flowers;
    }

    public SalesRecord() {

    }

    /// 添加用的构造函数
    public SalesRecord(Date sDate, Integer fId, Integer count, double total, String client, String remark, String emp, Date createAt, Date updatedAt) {

        this.sDate = sDate;
        this.fId = fId;
        this.count = count;
        this.total = total;
        this.client = client;
        this.remark = remark;
        this.emp = emp;
        this.createAt = createAt;
        this.updatedAt = updatedAt;
    }

    /// 修改用的构造函数
    public SalesRecord(int sId, Date sDate, Integer fId, Integer count, double total, String client, String remark, String emp, Date createAt, Date updatedAt) {
        this.sId = sId;
        this.sDate = sDate;
        this.fId = fId;
        this.count = count;
        this.total = total;
        this.client = client;
        this.remark = remark;
        this.emp = emp;
        this.createAt = createAt;
        this.updatedAt = updatedAt;
    }

    /// 获取数据用到的构造函数
    public SalesRecord(Integer sId, Date sDate, Integer fId, Integer count, double total, String client, String remark, String emp, Date createAt, Date updatedAt, Flowers flowers) {
        this.sId = sId;
        this.sDate = sDate;
        this.fId = fId;
        this.count = count;
        this.total = total;
        this.client = client;
        this.remark = remark;
        this.emp = emp;
        this.createAt = createAt;
        this.updatedAt = updatedAt;
        this.flowers = flowers;
    }

    @Override
    public String toString() {
        return "SalesRecord{" +
                "sId=" + sId +
                ", sDate=" + sDate +
                ", fId=" + fId +
                ", count=" + count +
                ", total=" + total +
                ", client='" + client + '\'' +
                ", remark='" + remark + '\'' +
                ", emp='" + emp + '\'' +
                ", createAt=" + createAt +
                ", updatedAt=" + updatedAt +
                ", flowers=" + flowers +
                '}';
    }
}
